/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						 footprint.cpp

	$Header: /heroes4/footprint.cpp $

	$NoKeywords: $

 ************************************************************************/

// kill the 255+ character identifier warning.  Templates tend to exceed that easily.
#include "precompiled.h"
#pragma warning( disable: 4786 )

#include "footprint.h"

// ------------------------------------------------------------
// ------------------------------------------------------------
t_footprint::~t_footprint()
{
}

// ------------------------------------------------------------
// ------------------------------------------------------------
bool t_footprint::are_any_cells_flat() const
{
	t_map_point_2d size = get_size();
	t_map_point_2d point;
	for ( point.column = 0; point.column < size.column; ++point.column )
	{
		for ( point.row = 0; point.row < size.row; ++point.row )
		{
			if ( is_cell_flat( point ) )
				return true;
		}
	}

	return false;
}

// ------------------------------------------------------------
// ------------------------------------------------------------
bool t_footprint::are_any_cells_impassable() const
{
	t_map_point_2d size = get_size();
	t_map_point_2d point;
	for ( point.column = 0; point.column < size.column; ++point.column )
	{
		for ( point.row = 0; point.row < size.row; ++point.row )
		{
			if ( is_cell_impassable( point ) )
				return true;
		}
	}

	return false;
}

// ------------------------------------------------------------
// ------------------------------------------------------------
int t_footprint::get_vertex_height( t_map_point_2d const& point ) const
{
	return 0;
}

// ------------------------------------------------------------
// ------------------------------------------------------------
bool t_footprint::is_left_edge_blocked( t_map_point_2d const& point,
										bool				   under_bridge ) const
{
	return false;
}


// ------------------------------------------------------------
// ------------------------------------------------------------
bool t_footprint::is_right_edge_blocked( t_map_point_2d const& point, bool under_bridge ) const
{
	return false;
}
